const editView = (localData) => {
    let markup = `
<form action="" class="form-horizontal modal-form" role="form" id="form">
    <div class="form-group">
        <label for="goods_name" class="col-sm-2 control-label">名称:</label>
        <div class="col-sm-9">
            <input type="text" id="val" name="config_name" value="{{:config_name}}" class="form-control">
        </div>
    </div>
    <div class="form-group">
        <label for="goods_name" class="col-sm-2 control-label">值:</label>
        <div class="col-sm-9">
            <input type="text" id="val" name="val" value="{{:val}}" class="form-control">
            <input type="hidden" id="id" name="id" value="{{:id}}" class="form-control">
        </div>
    </div>
    <div class="form-group">
        <div class="btn-box">
            <input type="button" class="btn btn-primary" id="submitBtn" value="提交">
        </div>
    </div>
</form>`;

    let template = $.templates(markup);
    let compiledHtml = template.render(localData);

    return compiledHtml;

};

export {
    editView
}